from py_code.util.getch import getch

while True:
    c = getch()
    print(c)
    if c == 'q':
        break